from bs4 import BeautifulSoup
from urllib.request import urlopen
import re

html = urlopen('https://mofanpy.com/static/scraping/table.html').read().decode('utf-8')
soup = BeautifulSoup(html, features='lxml')

img_links = soup.find_all('img', {'src': re.compile('.*?\.jpg')})
for img in img_links:
    print(img)

